import request from "@/utils/request";

// 查询sw模板列表
export function listSwTemp(query) {
  return request({
    url: "/swTemp/swTemp/list",
    method: "get",
    params: query,
  });
}

// 查询sw模板详细
export function getSwTemp(id) {
  return request({
    url: "/swTemp/swTemp/" + id,
    method: "get",
  });
}

// 新增sw模板
export function addSwTemp(data) {
  return request({
    url: "/swTemp/swTemp",
    method: "post",
    data: data,
  });
}

// 修改sw模板
export function updateSwTemp(data) {
  return request({
    url: "/swTemp/swTemp",
    method: "put",
    data: data,
  });
}

// 删除sw模板
export function delSwTemp(id) {
  return request({
    url: "/swTemp/swTemp/" + id,
    method: "delete",
  });
}
